<?php
namespace App\Service;

use App\Models\User;
use App\Models\Config;

class UserPointService
{
    public function addPoints(User $user)
    {
        $points = $this->pointsNum();

        $user->addPoints($points);

        return $points;
    }

    protected function pointsNum()
    {
        return Config::pointsNum();
    }
}
